package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.GradeBean;
import com.project.bean.RoleBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IRoleMapper extends BaseMapper<RoleBean> {

    public List<RoleBean> findRoleByUserId(Integer userId);

    public void delUserRoleById(Integer roleId);
    public void delRoleGradeById(Integer roleId);

    public void addRoleGrade(@Param("roleId") Integer roleId, @Param("gradeId") Integer[] gradeId);

}
